package com.huluobo.base.db;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;

import com.huluobo.base.bean.Money;

import io.reactivex.Observable;

/**
 * Created by LC on 2024/8/24.
 */
@Dao
public interface MoneyDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insertUserMoney(Money money);

    @Update
    void updateUserMoney(Money money);

    @Query("select * from user_money where username=:username")
    Observable<Money> queryUserMoneyByName(String username);
}
